<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="css/common.css"/>
    <link rel="stylesheet" type="text/css" href="css/main.css"/>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container clearfix">
    <!--/sidebar-->
    <div class="main-wrap">
        <div class="search-wrap">
            <div class="search-content">
                <form action="/PaperSeach" method="post" role="form">
                    <table class="search-tab form-group">
                        <tr>
                            <th width="300">
                                <span style="position: relative;right: 10px;font-size: 16px;">选择班级：</span>
                                <select id="grade" name="grade" class="form-control">
                                    <option value="">全部</option>
                                    <option th:each="grade:${grades}" th:selected="${class}==${grade.id}" th:value="${grade.id}" th:text="${grade.gradesName}">加载中……
                                    </option>
                                </select>
                            </th>
                            <td>

                            </td>
                            <th width="70">
                            </th>
                            <td><input class="common-text form-control" placeholder="姓名" name="name" id="keyword" type="text"></td>
                            <td><input class="btn btn-info" name="sub" value="查询" type="submit"></td>
                        </tr>

                    </table>
                </form>

            </div>
        </div>
        <div class="">
            <form name="myform" id="myform" method="post">
                <div class="result-title">
                    <div class="result-list">
                        <button class="btn btn-success" type="button" data-toggle="modal" data-target="#myModal">新增作品</button>
                        <a class="btn btn-danger" id="batchDel" href="javascript:void(0)"><i class="icon-font"></i>批量删除</a>
                        <a class="btn btn-warning" id="updateOrd" href="javascript:void(0)"><i class="icon-font"></i>修改</a>
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%" align="center">
                        <tr>
                            <th class="tc" width="5%"><input class="allChoose" name="" type="checkbox"></th>
                            <th class="text-center">ID</th>
                            <th class="text-center">题目名称</th>
                            <th class="text-center">题目简介</th>
                            <th class="text-center">答案A</th>
                            <th class="text-center">答案B</th>
                            <th class="text-center">答案C</th>
                            <th class="text-center">答案D</th>
                            <th class="text-center">是否多选</th>
                            <th class="text-center">正确答案</th>
                            <th class="text-center">所属年级</th>
                            <th class="text-center">出题时间</th>
                        </tr>
                        <tr th:each="stu:${pageInfo.list}">
                            <td><input   class="allChoose center" name="check" type="checkbox"></td>
                            <td class="text-center" th:text="${stu.id}">加载中……</td>
                            <td class="text-center" th:text="${stu.name}">加载中……</td>
                            <td class="text-center" th:text="${stu.describe}">加载中……</td>
                            <td class="text-center" th:text="${stu.answer_a}">加载中……</td>
                            <td class="text-center" th:text="${stu.answer_b}">加载中……</td>
                            <td class="text-center" th:text="${stu.answer_c}">加载中……</td>
                            <td class="text-center" th:text="${stu.answer_d}">加载中……</td>
                            <td class="text-center" th:text="${stu.judgeopt}">加载中……</td>
                            <td class="text-center" th:text="${stu.exactness}">加载中……</td>
                            <td class="text-center" th:text="${stu.grades.gradesName}">加载中……</td>
                            <td class="text-center" th:text="${stu.setOpen}">加载中……</td>
                        </tr>
                    </table>
                    <dic class="container">
                        <ul class="pagination">
                            <li><a th:href="@{'PaperSeach?indexPage='+${pageInfo.prePage}+'&flag=p'}">&laquo;</a></li>
                            <li th:each="num:${pageInfo.navigatepageNums}"><a th:href="@{'PaperSeach?indexPage='+${num}+'&flag=p'}" th:text="${num}"></a></li>
                            <li><a th:href="@{'PaperSeach?indexPage='+${pageInfo.nextPage}+'&flag=p'}">&raquo;</a></li>
                        </ul>
                    </dic>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>